import { Component } from '@angular/core';
import {NavController, NavParams } from 'ionic-angular';
import {HttpServies} from '../../providers/http-servies';
import {SecondPage} from "../second/second";
import {FojlPage} from "../fojl/fojl";
import {PositionPage} from "../position/position";


@Component({
  selector: 'page-releas',
  templateUrl: 'releas.html',
  providers:[HttpServies]
})
export class ReleasPage {

  constructor(public navCtrl: NavController,private http:HttpServies,public navParams: NavParams) {
  }

  // ionViewDidLoad() {
  //   console.log('ionViewDidLoad ReleasPage');
  // }
  //二手市场跳转
  codPage(){
    this.navCtrl.push(SecondPage);
  }
  //发布简历
  fojlPage(){
    this.navCtrl.push(FojlPage);
  }
  //发布职位
    positionsPage(){
      this.http.httpPost('/Home/human/posit')
          .then(res => {//成功
            if (res && res.code == 1) {
              this.navCtrl.push(PositionPage);
            }else {
              this.http.showErro(res.msg);
            }
          })
    }
}
